package com.china08.yxyapi.entity.mg.lessons;

import javax.persistence.Id;

import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.china08.yxyapi.entity.mg.MongoBaseEntityNoId;

/**
 * 课程的学习人数, 云课堂的用户学习记录也记录到此表总 2018年01月02日
 * 
 * @author LiuWeidong
 *
 */
@Document(collection = "yxy.lessons.user.study")
public class YxyLessonsUserStudy extends MongoBaseEntityNoId {

	private static final long serialVersionUID = 6037970962547271690L;

	@Id
	private String id;// 使用用户id+lessonsID进行拼接为id(例如:3433434_34343434)

	/**
	 * 用户ID
	 */
	@Indexed
	@Field(value = "user_id")
	private String userId;

	/**
	 * 课程ID
	 */
	@Indexed
	@Field(value = "lessons_id")
	private String lessonsId;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getLessonsId() {
		return lessonsId;
	}

	public void setLessonsId(String lessonsId) {
		this.lessonsId = lessonsId;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
